package com.bdmc.base.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.bdmc.base.domain.bo.BaseFencePointBo;
import com.bdmc.common.annotation.ExcelDictFormat;
import com.bdmc.common.convert.ExcelDictConvert;
import lombok.Data;

import java.util.List;


/**
 * 网格视图对象 base_fence
 *
 * @author bdmc
 * @date 2022-03-03
 */
@Data
@ExcelIgnoreUnannotated
public class BaseFenceVo {

	private static final long serialVersionUID = 1L;

    /**
     * 围栏id
     */
	@ExcelProperty(value = "围栏id")
	private Long fenceId;

    /**
     * 部门id
     */

	private Long deptId;

    /**
     * 围栏名称
     */
	@ExcelProperty(value = "围栏名称")
	private String fenceName;

    /**
     * 围栏类型 字典
     */
    @ExcelProperty(value = "围栏类型 字典", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "base_fence_type")
	private String fenceType;

    /**
     * 经纬度合集
     */
	@ExcelProperty(value = "经纬度合集")
	private String latlng;

    /**
     * 半径 米（圆形才有）
     */
	@ExcelProperty(value = "半径 米", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "圆=形才有")
	private Integer radius;

    /**
     * 检查点数量
     */
	@ExcelProperty(value = "检查点数量")
	private Integer pointCount;

    /**
     * 备注
     */
	@ExcelProperty(value = "备注")
	private String remark;

	/**
	 * 背景色
	 */
	@ExcelProperty(value = "背景色")
	private String bgColor;

	@ExcelProperty(value = "部门名称")
	private String deptName;

	/**
	 * 围栏内的检查点
	 */
	private List<BaseFencePointVo> fencePointList;
}
